package test;

import org.apache.commons.dbutils.DbUtils;
import org.apache.commons.dbutils.QueryRunner;
import utils.DruidUtils;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

public class dbtest {
    public static void main(String[] args) {
        Connection connection = DruidUtils.getConnection();
        if (connection!= null){
            System.out.println("数据库连接成功！！！");
        }
        try {
            connection.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
